{% extends 'ViettransFrontBundle::layout.html.twig' %}

{% block breadscrumb %}
    {% render 'ViettransFrontBundle:Partial:breadScrumb' with {'request':app.request} %}
{% endblock %}

{% block body %}
<div class="grid_24">
	<div id="announcement_new" class="panel_no_bordered">
		<div class="header">{{ 'announcement.new.header.text' | trans }}</div>
		<form action="{{ path('announcement_new') }}" method="post" {{ form_enctype(form) }}>
			<table>
				<tr>
					<td class="label">{{form_label(form.typeId)}}</td>
					<td class="widget">{{form_widget(form.typeId)}}
						<div class="error">{{form_errors(form.typeId)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.categoryId)}}</td>
					<td class="widget">{{form_widget(form.categoryId)}}
						<div class="error">{{form_errors(form.categoryId)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.locality)}}</td>
					<td class="widget">{{form_widget(form.locality)}}
						<div class="note">{{ 'announcement.new.notices.locality' | trans }}</div>
						<div class="error">{{form_errors(form.locality)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.contactName)}}</td>
					<td class="widget">{{form_widget(form.contactName)}}
						<div class="error">{{form_errors(form.contactName)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.contactEmail)}}</td>
					<td class="widget">{{form_widget(form.contactEmail)}}
						<div class="error">{{form_errors(form.contactEmail)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.contactTelephone)}}</td>
					<td class="widget">{{form_widget(form.contactTelephone)}}
						<div class="note">{{ 'announcement.new.notices.contactTelephone' | trans }}</div>
						<div class="error">{{form_errors(form.contactTelephone)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.title)}}</td>
					<td class="widget">{{form_widget(form.title)}}
						<div class="note">{{ 'announcement.new.notices.title' | trans }}</div>
						<div class="error">{{form_errors(form.title)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.description)}}</td>
					<td class="widget">{{form_widget(form.description)}}
						<div class="note">{{ 'announcement.new.notices.description' | trans }}</div>
						<div class="error">{{form_errors(form.description)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.price)}}</td>
					<td class="widget">{{form_widget(form.price)}}
						<div class="note">{{ 'announcement.new.notices.price' | trans }}</div>
						<div class="error">{{form_errors(form.price)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.photo)}}</td>
					<td class="widget">
						<div id="photos">
							<div class="photo">{{form_widget(form.photo)}}</div>
						</div>
						<div class="note">{{ 'announcement.new.notices.photo' | trans }}</div>
						<div class="error">{{form_errors(form.photo)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label"></td>
					<td class="widget"><div class="error">{{form_errors(form)}}</div></td>
				</tr>
				<tr>
					<td colspan="2" align="center">{{ form_rest(form) }}
						<button class="button next" type="submit">{{ 'announcement.new.buttons.submit' | trans }}</button>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
{% endblock %}